package cn.kgm.user.dto.dto;

import cn.kgm.core.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * # 技术改变自己 #
 * 用户联系方式表
 * @author kappi
 * @date   2024-04-08 15:08:08
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel(value = "UserContactUpdateDTO", description = "用户联系方式表")
public class UserContactUpdateDTO extends Entity<Long> {

    /**
     * 联系方式类型:[PHONE,手机号];[EMAIL,邮箱];[WECHAT,微信]
     */
    @ApiModelProperty(value = "联系方式类型:[PHONE,手机号];[EMAIL,邮箱];[WECHAT,微信]", position = 2)
    @NotNull(message = "联系方式类型:[PHONE,手机号];[EMAIL,邮箱];[WECHAT,微信]不能为空")
    private Long type;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式", position = 3)
    @Size(max = 32, message = "联系方式长度不能超过32")
    @NotBlank(message = "联系方式不能为空")
    private String value;

}
